package com.foruo.learn.designmode.interpret;

/**
 * 测试类
 * @author GaoYuan
 * @date 2018/11/11 下午2:15
 */
public class TestMe {

    public static void main(String[] args){
        String statement = "1 + 2 + 3 - 5";
        Calculator calculator = new Calculator();
        int result = calculator.calculator(statement);
        System.out.println(statement + " = " + result);
    }
}
